#include "Inject.h"
#include "Manager.h"

CManager g_manager;

INJECT_API int CALL_METHOD INJECT_QueryProcessIdsFromName(const char* szProcessName, int iMaxNum, DWORD* dwPIDList)
{
	return g_manager.QueryProcessIdsFromName(szProcessName, iMaxNum, dwPIDList);
}

INJECT_API LLONG CALL_METHOD INJECT_InjectDLLToProcess(DWORD dwProcessId, const char* szDllPathName)
{
	return g_manager.InjectDLLToProcess(dwProcessId, szDllPathName);
}

INJECT_API BOOL CALL_METHOD INJECT_PulledOutDLL(LLONG hInject)
{
	if (FALSE == g_manager.CheckHandleInvalid(hInject))
	{
		return FALSE;
	}

	return g_manager.PulledOutDLL(hInject);
}

INJECT_API BOOL CALL_METHOD INJECT_PulledOutDLLByName(const char* szProcessName, const char* szModuleName)
{

	return g_manager.PulledOutDLLByName(szProcessName, szModuleName);
}
